

<!DOCTYPE html>
<html>

<head>

    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>H+ 后台主题UI框架 - 空白页</title>
    <meta name="keywords" content="">
    <meta name="description" content="">

    <link rel="shortcut icon" href="__STATIC__/layout/favicon.ico">
     <link href="__STATIC__/layout/css/bootstrap.min.css?v=3.3.6" rel="stylesheet">
    <link href="__STATIC__/layout/css/font-awesome.css?v=4.4.0" rel="stylesheet">
     <!-- jqgrid-->
    <link href="__STATIC__/layout/css/animate.css" rel="stylesheet">
    <link href="__STATIC__/layout/css/style.css?v=4.1.0" rel="stylesheet">
    <link href="__STATIC__/layout/css/plugins/sweetalert/sweetalert.css" rel="stylesheet">
    <link href="__STATIC__/layout/css/gyq.css" rel="stylesheet">
    <link rel="stylesheet" href="__STATIC__/layout/css/demo.css" type="text/css">
    <style>
		 .table-condensed tbody tr td span{display: block;}

    </style>
</head>

<body style="padding:3px;">
    <!-- 标题 -->
    <!-- 标题 -->
    <div>
    <form action="" class="form-inline">
      <table class="row-margin-top tab-content table-bordered table bud_hei" border="1">
          <tr>
            <td><span class="lr_5"></span>年份：  <select name="cid" id="cid" class="select form-control">
                 {volist name="cainian" id="c"}
                  <option value="{$c.id}" {if $cid==$c.id} selected {/if}>{$c.title}</option>
                 {/volist}
              </select> <span class="lr_5"></span> <button type="button" class="btn-info btn btn-outline {if $tid==1} active {/if}" onclick="chanxun(1)">前5名</button><span class="lr_5"></span><button type="button" class="btn-info btn btn-outline {if $tid==2} active {/if}" onclick="chanxun(2)">前20名</button><span class="lr_5"></span><button type="button" class="btn-info btn btn-outline {if $tid==3} active {/if}" onclick="chanxun(3)">前50名</button><span class="lr_5"></span><button type="button" class="btn-info btn btn-outline {if $tid==4} active {/if}" onclick="chanxun(4)">后50名</button><span class="lr_5"></span><button type="button" class="btn-info btn btn-outline {if $tid==5} active {/if}" onclick="chanxun(5)">查看所有</button><span class="lr_5"></span>
              <button type="button" class="btn-info btn btn-outline" onclick="dc({$cid},{$tid})">导出Excel</button></td>
        </tr>
        <tr>
          <td class="text-center font-bold"><span id="selectText">{$nian}</span>年所展网点发运排名</td>
          </tr>
          <tr>
             <td class="text-right">
                单位(万元)
            </td>
          </tr>
      </table>
    
      <table class="table table-bordered text-right bud_hei" style="margin:0">
          <tr class="info">
            <th class="text-center">序号</th>
            <th class="text-center">网点名</th>
            <th class="text-center">所属系统</th>
            <th class="text-center">所属经销商</th>
            <th class="text-center">区域</th>
            <th class="text-center">省份</th>
            <th class="text-center">城市</th>
             {volist name="kaohe2" id="k"}
              <th class="text-center">{$k.title}</th>
            {/volist}
            <th class="text-center">小计</th>
          </tr>
          <tbody style="border:0">
		 {volist name="apply" id="vo" key="k"}
      <tr>
        <td class="text-center">{$k}</td>
        <td class="text-left">{$vo.net}</td>
        <td class="text-left">{$vo.sys}</td>
        <td class="text-left">{$vo.jxs}</td>
        <td class="text-center">{$vo.fenqu}</td>
        <td class="text-center">{$vo.sheng}</td>
        <td class="text-center">{$vo.shi}</td>
        {volist name="$vo.jine" id="j"}
                <td class="ObjectNum">{$j}</td>
        {/volist}
        <td class="ObjectNum warning">{$vo.zong}</td>
      </tr>
      {/volist}
          </tbody>
          <tfoot>
            <tr class="trTotal">
              <td colspan="7">总计：</td>
               {volist name="kaohe2" id="k"}
              <th class="text-center">{$k.zjine}</th>
            {/volist}
              <td class="ObjectNum">{$zong}</td>
            </tr>
          </tfoot>
      </table>
</form>
    </div>
    <!-- 全局js -->
    <script src="__STATIC__/layout/js/jquery.min.js?v=2.1.4"></script>
    <script src="__STATIC__/layout/js/bootstrap.min.js?v=3.3.6"></script>
    <!-- <script src="js/plugins/metisMenu/jquery.metisMenu.js"></script> -->
    <script src="__STATIC__/layout/js/plugins/slimscroll/jquery.slimscroll.min.js"></script>
     <script src="__STATIC__/layout/js/plugins/datapicker/bootstrap-datepicker.js"></script>
    <script src="__STATIC__/layout/js/common.js"></script>
    <script>
    function dc(cid,tid){
      window.open("{:url('netfydc')}?cid="+cid+"&tid="+tid)
    }
    function chanxun(tid){
            var cid=$("#cid").val();
            location.href="{:url('netfy')}?cid="+cid+"&tid="+tid
          }
        $(document).ready(function(){
        	var $ObjectNum =$(".ObjectNum");
        	   toNum($ObjectNum);
        	   var Year= $("#Year").val(); 
         $("#selectText").html(Year)
          $('.yearpicker').datepicker({  
            startView: 'decade',  
             minView: 'decade',  
             format: 'yyyy',  
             maxViewMode: 2,  
             minViewMode:2,  
              autoclose: true  
            }); 

          $(".query").click(function(){
             var Year= $("#Year").val(); 
         $("#selectText").html(Year)

        })
      })
    </script>
</body>

</html>
